import { VEHeader, VEType, VELoop, VEVertex } from "./";

export class VEEdge {

  /**
   * 通用状态记录
   */
  public header: VEHeader;

  public get id(): string {
    return this.v1.index + '-' + this.v2.index;
  }

  public v1: VEVertex;
  public v2: VEVertex;

  public loop: VELoop | null = null;


  public constructor( v1: VEVertex, v2: VEVertex) {
    this.header = new VEHeader(VEType.Edge);
    this.v1 = v1;
    this.v2 = v2;

  }


}